package com.dapeis.exception.order;

import com.ag.core.exception.CodeException;
import com.dapeis.exception.Code;

/**
 * @author 作者 E-mail:
 * @version 创建时间：2017年5月11日 上午9:11:31 类说明
 */
public class IllegalOrderStateException extends CodeException {
    /** 描述 */
    private static final long serialVersionUID = -9166419601826443540L;
    private Integer currProgress = 0;
    private Integer verifyProgress = 0;

    public IllegalOrderStateException(String msg, int currProgress,
	    int verifyProgress) {
	super(Code.ORDER_INVAILD_STATUS_EXCEPTION, msg);
	this.currProgress = currProgress;
	this.verifyProgress = verifyProgress;
    }

    public IllegalOrderStateException(int currProgress, int verifyProgress) {
	this("订单状态非法.订单当前状态:" + currProgress + ", 验证状态:" + verifyProgress,
		currProgress, verifyProgress);
    }

    public int getCurrProgress() {
	return currProgress;
    }

    public void setCurrProgress(int currProgress) {
	this.currProgress = currProgress;
    }

    public Integer getVerifyProgress() {
	return verifyProgress;
    }

    public void setVerifyProgress(Integer verifyProgress) {
	this.verifyProgress = verifyProgress;
    }
}
